﻿@{
    ViewBag.Title = "Index";
}
@using Projectmanagement.Entity
@model IQueryable<Task>
 @(Html.Telerik().Grid(Model).Name("TaskFix")
          .DataKeys(keys =>
          {
              keys.Add(s => s.ID);
          })
    .Columns(columns =>
    {
        columns.Bound(item => item.TaskCode);
        columns.Bound(item => item.Owners).Width(140);
        columns.Bound(item => item.Name).Width(240);
        columns.Bound(item => item.StartDate).Width(100);
        columns.Bound(item => item.EndDate).Width(100);
        columns.Bound(item => item.Duration).Width(100);
        //columns.Bound(item => item.Complement).Width(120);
        columns.Bound(item => item.Assinger).Width(100);
        columns.Bound(item => item.ID).Title("操作").Width(150).Template(@<span>
                    <a href=@Url.Content("~/taskfix/Edit/" + item.ID) >编辑</a> 
                   </span>);
          
    })
    .Editable(editing => editing.Mode(GridEditMode.PopUp))
    //.Pageable(paging => paging.Style(GridPagerStyles.Status).PageOnScroll(true))
    .Scrollable(c => c.Height("353px"))
    .Sortable()
    .Resizable(resizing => resizing.Columns(true))
      )
